﻿<%@ Page Title="" Language="C#" MasterPageFile="~/InnerInfo/InnerMaster.Master" AutoEventWireup="true" CodeBehind="InnerInfoQuery.aspx.cs" Inherits="QuaManSys.InnerInfo.InnerInfoQuery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">
  <%--  <asp:FormView ID="FormView1" runat="server" >
    </asp:FormView>--%>

    <div>
    please select a qualityInfoId
        <asp:DropDownList ID="DropDownList1" runat="server" 
            DataSourceID="EntityDataSource2" AutoPostBack="True" 
            DataTextField="qualityInfoId" DataValueField="qualityInfoId">
        </asp:DropDownList>


    </div>

     <asp:Repeater ID="Repeater1" runat="server" DataSourceID="EntityDataSource1">
         <HeaderTemplate>
            <table>
              <tr>
                <th>处理部门</th>
                <th>处理人</th>
                <th>处理意见</th>
                <th>处理时间</th>
              </tr>
          </HeaderTemplate>
          <ItemTemplate>
            <tr>
              <td style="background-color:#CCFFCC">
                <asp:Label runat="server" ID="Label1" Text='<%# Eval("processerDepart") %>' />
              </td>
              <td style="background-color:#CCFFCC">
                <asp:Label runat="server" ID="Label2" Text='<%# Eval("processerName") %>' />
              </td>
              <td style="background-color:#CCFFCC">
                <asp:Label runat="server" ID="Label5" Text='<%# Eval("opinion") %>' />
              </td>
              <td style="background-color:#CCFFCC">
                <asp:Label runat="server" ID="Label6" Text='<%# Eval("processingDate") %>' />
              </td>
            </tr>
          </ItemTemplate>
          <AlternatingItemTemplate>
            <tr>
              <td style="background-color:#FFCCFF">
                <asp:Label runat="server" ID="Label3" Text='<%# Eval("processerDepart") %>' />
              </td>
              <td style="background-color:#FFCCFF">
                <asp:Label runat="server" ID="Label4" Text='<%# Eval("processerName") %>' />
              </td>
              <td style="background-color:#FFCCFF">
                <asp:Label runat="server" ID="Label5" Text='<%# Eval("opinion") %>' />
              </td>
              <td style="background-color:#FFCCFF">
                <asp:Label runat="server" ID="Label6" Text='<%# Eval("processingDate") %>' />
              </td>
            </tr>
          </AlternatingItemTemplate>
          <FooterTemplate>
            </table>
          </FooterTemplate>

    </asp:Repeater>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        AutoGenerateWhereClause="True" ConnectionString="name=QuaManSysEntities" 
        DefaultContainerName="QuaManSysEntities" EnableFlattening="False" 
        EntitySetName="InnerQualityInfoPro" 
        Select="it.[processerName], it.[processerDepart], it.[processingDate], it.[opinion]" 
        Where="">
        <WhereParameters>
            <asp:ControlParameter ControlID="DropDownList1" Name="qualityInfoId" 
                PropertyName="SelectedValue" Type="String" />
        </WhereParameters>
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="EntityDataSource2" runat="server" 
        ConnectionString="name=QuaManSysEntities" 
        DefaultContainerName="QuaManSysEntities" EnableFlattening="False" 
        EntitySetName="InnerQualityInfo" Select="it.[qualityInfoId]">
    </asp:EntityDataSource>

</asp:Content>
